ECMS-4715 Fix bug cannot display permission popup in query form and a small bug in manage view