added spinner and made index mobile friendly.