better way to add modal to page