Added comments
Set page id as page name when empty
Set delete action only when appropriate
Added page name in page details for all types of pages