Fixed layout events to only fire once when the page is showing. Fixed handling of iframe links for touch devices.