Removed template. Bind click event when in edit mode. Cleanup.