Add PanelView constructor for easier rendering

Add constructor for creating panel views
Each panel view has a render method for rendering itself
render data is passed as first argument.