fixing alert and centering