centralize data
added connection for buttons
passing parameter friend