Implement alert and confirm functionalities of MessageBox plugin