gives back focus to canvas when button pressed
changins some references around