Fixed some sidebar issues and added option to hide sidebar