fixed media detail page
better page handling
renamed rex_deleteCache() to rex_delete_cache()