Add ajax function for project editting