Cleaned up code on tag page