redirect to main page after page deleting