Added callbacks for single deployments and better checking on the environment page