added initShow and buttonShow options