add instance var to controller and pass it to the view extend