Rename closeOnClick to hideOnClick for names consistency