Change form design and make hearts counter to respond to json request