Fixing bug of multiple graphs appearing one below the other when clicking the 'Get Graph' or 'Apply Filters' button repeatedly