updated mainui to work on pi