not working button handling

if my new idea is even worse start from here