Changed page deletion modal

- Modal is now only visible when page is visible (same as deletion
button)