add and remove buttons functional