changed to route based linking instead of fixed index.php call
added a mailaccount controller to handle theroute based requests