events :  view + restapi