Changing format of how sidebar works to be more dynamic