handled redeclaration of Page class error