add disable view function incontroller