Rewrite new_pin into a Class Based View