updated courses controller and views