Adding ajax post and prev next button. Altso adding backend wordpress functions.