refactoring;
added plot to index page