styled pages and redid logic on machining page