Create and close training plan functionality