update button styles
added sql for calculating far diff