turned off event handler on max pages