Refactored contact controller for removing index.php from url path