Added enum for closeButton types (none/left/right)