added download button and ability to hide buttons