Added registering view. Not working right...