fixes the connection with button sender attribute