implemented admin and public views