implemented zoom functionality