Refactor code for rendering tag menu
Bugfix
Implement functionality of delete tags. Fix bug of refresh tag menu