added peer functions in gui
merge