added double-tap & single-tap functionality