added tag pages, trimming repetitive code, fixing bugs