updated buttons and viewer