Added more functions to make page deletion functional