fixed peer name length when saving it and added page refresh functionality when hitting back button