gupNext complete frontend code