cleaning up code for all pages except photobooth