setting up modal grid