Refactoring code; removed unused code from VariantStatsWidget