Restructured some of the html and added the ability to submit a note via the popup