Updating status instead of repainting window all the time