Added "next" and "previous" buttons to media page