various user interface improvements including sidebar addition, removing duplicate DB queries for logged in user