functionality

added modal and other functionality