update block for use with Moodle 2.5