adding menu and csv download functions
adding auto_resize function