added up and down gestures and made stability changes