save and clear functionality added