adding view and user name availability functions