auto adjust displayed indices based on screen size

closes #160
added tests for auto adjust layout
fixes connect to host option

closes #163