Sort posts by submitted timestamp and properly redirect back to postPage after submitting post