update views according to registration status and fix errors