update index to work with jquery mobile