Update plot during idle time
Fixed plot cancelling
Fix bug when switching plots