added footer call, fixed search bug