fixed bug that clear button calls add budget instead of clear
deleted unnecessary lines
deleted more unnecessary lines
decomposed a line of code for clarity
changed a comment