ajax on new post note need to  fix tests