change modal type