added register template and view