Fix key error when no tags are specified
Return new object on post, and tidy up html a bit