Adds variable sidebar visibility