adding initial modal functionality