update the condition for checking the page type

checkout request is hardcoded now but might be changed later