change header for controller pages, refactored flash notice to header page and set dynamic page titles