added comments, fix bug with sidebar when scroll