Implemented a working api for page commands