Separate tag logic to tag_sidebar

Fixes #35