Update @data instance variable; Made table for index view