added zoom restraints and resetzoom button