refactors adding and editing posts
adds get posts by tag