Updated index

changed the behavior for mobile devices