added register view and event view