fixed issue with zoom logic but can't get zoom to work for more than a few seconds