complete function of create forget view.