clean up modal rendering