make the panel a view instead