updated list media and modal code