save and edit write to storage with correct buttons shown