Added event handlers for mobile, spreading html into temps