fixed bug in foster app

converted foster app to knockout js