Security Fix

Fixed XSS inside Department menagment and other updates