checking for last element of teaches in template
Added modified_by and correct mime_type from file obj