wrote some helpers for the lessons views