buttons reworked with ajax