added option to show closeButton left-top(default)/right-top