partially working button code