added latest stuff. views for table still not working