moved modal init