resolved problem with search function, added validation, tweaked views