beginning of searching and admin page