made common render() method on ModalView