attendance controller and views