#1076 Created logic for page structure modal window button in sidebar