added  a base modal functionality