added ajax to media