work with gallery pages
change events fixed, removing gallery support