refactored a few lines of code
added add, edit, delete to series