fixed bug related to last fix, and added delete button to media