modified function for defining placement of buttons in a viewer section