fixing the focus issue on media Panel