fixed modal event binding issue by getting rid of it