added sidebar functionality