added flowlayout for popup panel