added ajax new post functionality to dashboard