rearrange position for alerts and buttons