added some css to the index detail views

some new HTML + CSS and did a little bit backend on the db