Add register functional
Fixed display view bug