fix input and update screen