add programming when clicked - buggy and WIP