change rendering method to layout/pane based