relocated modal templates, fixed mobile view