Refactor and add alert to inform user that his proposition has been saved