got ajax functionality working on New View page