added register view(working) and some other things