added sidebar functions