split out updating process for seekbar into a method