Changing custom sidebar behavior