added some basic modal functionality