got logic for handling desktop/tablet/mobile, need to fix up 1 thing in the mobile version