added logic for tags, built out some routes and views