get ajax working again for creating notes