Updated web code, fixed compiler error