fixed history bug for programs via controller action