main display init code