Updated tpls and added controllers

Added controllers for submitting data