remove view page and add button state