#perf added a focus listener to ManhattanView in order to pause rendering when the view is not on focus