updated view so they work now
updated formating and added a method