changed panel to modal