Add function for page elements