Added functionality to edit attributes from template via controller PUT-request