changed jquery functions