working on posts controller