updated slotClick(), got rid of error on click but no action follows