buf fix and added autumatic zoom