friend post window click handle, refactoring