side bar functionality on add