Merged view and edit modes' HTML into one block. Added jQuery code to edit text.