change clear settings to ajax behavior