code optimization add button - steven g