Code refactor to meet the conventions, move parse_tags to views