moved modal above js