Changed api view to admin view