tweak main layout to optionally include get the code button