Append body content when ready instead of at init(). Refactor modal to its own module.