added button to delete selected object - probably breaks if it's the target of a trigger