add a function to display the modal modes.