fix refresh timer and variable input selection