fix delete redirection
fix delete media on activity delete
fix delete media on activity delete