How to set if NEXT button is click than after PREVIOUS button is show

this is .html file

<div class="question"></div>

{%= __("<< Previous") %} {%= __("Next >>") %}

this is .js file

frappe.pages[‘subject’].on_page_load = function(wrapper) {
frappe.subject = new frappe.Subject(wrapper);
frappe.breadcrumbs.add(“subject”, “Start Assignment”);
}

frappe.Subject = Class.extend({
init: function(parent) {
this.parent = parent;
this.make();
this.refresh();
},
refresh: function() {
//if(!this.assignment)
{
this.show_start();
}
},
make: function() {
this.page = frappe.ui.make_app_page({
parent: this.parent,
title: (“Start Assignment”),
single_column: true
});
},
show_start: function() {
this.page.main.html(frappe.render_template(“assignment_builder_start”, {}));
// this.page.clear_actions();
this.page.set_title(
(“Start Assignment”));
this.start_question();
this.start_answare();
},
start_question: function(sql) {

    //sql.executeSql("""select q_1 FROM `tabAdd Test Question` where tabAssignment.subject_name = %s""")
    var me = this;
    this.question_input = frappe.ui.form.make_control({
        parent: this.page.main.find(".question"),
        df: {
            fieldtype: "Read Only",
            //fieldname: "activity_1",
            label: __("Activity"),
        },
        render_input: true
    });
},
start_answare: function() {
    var me = this;
    this.answare_input = frappe.ui.form.make_control({
        parent: this.page.main.find(".answare"),
        df: {
            fieldtype: "Small Text",
            label: __("Answare")
        },
        render_input: true
    });
},
//page.main.find(".btn-next-question").on("click", function() {
//    erpnext.open_as_pos = true;
//    new_doc(pos_type.get_value());

});

Hi Pankaj,

I didn’t follow your question? Can you explain more?

-Anand.

thans anand.
i try to Next button is click than show next page(next activity) and click previous button than show previous page(previous - activity)
so, i start this page than show both (Next & Previous) button.
but i required i start this page frist of all only show Next button if one time click the Next button than after show Previous button.