optimized gui
resharper suggestion
fixed code change that caused frontend viewer to not work