restore view not working