finish media_type functionality (hidden field)