removed unnecessary path check in admin controller