Refractored button code
Delete now works as expected. No confirmation and notifications yet
The checkbox thingies work as expected now.