Update active menu function in admin panel