add env and user, and use user in page