added mark all in view function