add control + initial logic for pause functionality