bug fix for add media button on load