pdf fix, delete lessons through ajax request