fixes bug that deletes cancel button when window is resized