better add button transition
added comments
only show export when needed