add functionality for generating ID for new pages