create posts controller file