Added sidebar functionality.