added priority choicebox and action listener