add base code for modal