fixed firefox greyscale issue
started writing separation logic into pages