implemented document pages and double click