Added gesture to the transition