convert production ctrl to typescript and use my EnvStatus enum for showing status