changed sidebar behavior