Edit composer.json and code enhancements

Edit composer.json and do some code enhancements in
MediaManagerController