add generic view to panel