added controller template code
saving progress