rewrote new post helper as object