changed sidebar depending on permission