Refactoring and preparing custom views for plotter