write functions for display selection