Model controller  and adding to shared.php