Buttons in modal window in wrong order