moved initial chart layout to separate file