Fix touch events and add active class to current page