20/08
before refuctor
22/08/2013 dynamic toggle button implemented.