ReAllocate Function to Button