moved options to display function