Enabling buttons for gallery