added add button to tabs and refactored to partial