change priority widget and handle events