added ajax in add new entry