added pageRefresh back in for complete function on homepage and all events page