added code to release handler to toggle pause/play