changing jquery functions to handle list user functionality