remove markd requirement and auto add modal to dom