adding gesture functions