add js for user active control