adding to panel instead of popup