Added controller to submit notes to firebase