added sidebar menu directive from the bailiffs project
added permission changes from bailiffs
added logout bugfix from the bailiffs project