Linking buttons properly