adding skeleton code for main loop on tablet