Add search work on the homepage. Warning: Bad code...