Added newpost.html, added function for newpost page