fixed the multiple popups on add method