Rigths managment update + new modal.js + fix impersonation bugs