added guid generation method to frontend