fixed modal popup twice issue