finish add category, refactor and fixbug, stylesheet