Added ajax success to send the magazine_id to the controller