implemented translation in gui