called open shutter and close shutter functions