first pass refactor (buggy)
refactored form buttons into method
ajax wrapper for non-gets
refactored calendar-making loop