changing structure to use jquery multipage library