added search function to admin page and made it more easily importable for other sites later on