added filename attribute to send_data on courses, problems controller.