Added sidebar functionality