add close and minimum button