added functionality to Sins form and controller