admin function
implement search function
admin switch and emailer