moved searchBy enum to mainGui to user other places