fixes to gesture handling in views