change modal if condition