add prework and homework button action