Added select and close gesture support