added possibility to add post to empty pages