Added conditional pannel UI stuff with the do.call framework