Swapping edit and update buttons on preview