project add/update/remove with new js api
avoid ajax request when 'new' button is pressed