changed css and js for mobile view