Implemented add , edit media functionality