moved css/js calls to the controller