Added pan gesture recognizer to sidebar and implemented shape family selection for side bar.