fix bugs and make it better
fix another bug
add the view necessary right inside the code!

this is super ugly code!