Fix program page delete and new