Reimplemented viewport. Spread thingy window now opens on right click.