training logic and form added