moved searchBy enum to mainGui to use other places