this is the dirty code of my app ViewR - a little simplified :)