update panels to use attributes instead of methods