cleaned up programs controller