refactored & removed unnecessary activity
fixed dialogfragment button creation & refactored

determines which set of buttons is created for adding versus editing
deductions.