Refactored the contact controller, eliminating redundant code in the index, success_page and error_page functions. Created a general purpose function, populateKeywords_LoadViews(page_type) that loads the correct view and keywords based on page type.