refactored rdb download function
refactored csv download
added alertboxes for pdf download
implemented JSON download
CSS change