Added "Autozoom" button, and fixed some bugs