add submit and view user info function