moved button declearation