add rest buttons functions