refactor bits for passing render type and chart type via url