Created class Application moved LOgin and WorkFlow func there