setting rightly the cornerRadius for the modal