fixed namespace errors with modals