global vars
refresh selector bug