Added error logging function refactored views to accomodate it
added dynamic content decorator