Ajax updating view, still some errors to fix