Changed layout of buttons on the top of viewer