Removed hardcoded open popup event and useless code.