Performance tweaks
update progress bar for plan view
code reformatting

Signed-off-by: justin <justin@ensemble.com>