fix the view flipper (mobiles); refactor