fixed errors in adding and updating ideas