Added application refesh
Added environment restart