add view port and lock zoom
implements sum
little code format