modeling the modal card layout