working detail views
definitely move a lot of the value manipulation to the respective models after this otherwise its gonna get nasty.