Added functionality to program buttons