add modal and form functionality