Adding css index and main js

adding new funtions for proper display on mobiles