refactored tagsView out of mainView
added comments