Added gesture to control history