Moved modal to end of file