buttons cleanup, converting old js to jquery