made basic search work, split controllers into several files