Adds confimation for blocks deletion to trashcan

Refactored out already existing code to a function in the Block prototype