add basic modal functionality