fixed event propogation on the main page click handler