Added some smarter logic in determining which view has been clicked