add url and published_at to posts
add posts' state management to backend