add handling for page actions