add paragraph controls listener