update pager color
update logic for showing control element