Added functions to add posts to the page