reorganised interface jquery functions