added delete function for pages
fixed a bug where deleted pages that still had links caused an exception, now the link will just be #
need to fix setType and setValue in Link Model