add landscape layout and debug messages
save index when device config changes during runtime