added 500 ms delay to ui updating